package module.level.one;

import lombok.extern.slf4j.Slf4j;
import module.level.one.autogen.dao.CmsContentDao;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Module one`s starter
 *
 * @author Ivan
 * @version 1.0.0
 * @date 2021-06-13 13:32
 */
@Slf4j
@MapperScan
@SpringBootApplication
public class ModuleOneStarter implements InitializingBean {

    @Autowired
    private CmsContentDao cmsContentDao;

    @Override
    public void afterPropertiesSet() throws Exception {
        cmsContentDao.selectByPrimaryKey(1);
    }

    public static void main(String[] args) {
        SpringApplication.run(ModuleOneStarter.class, args);
    }
}
